<template>
    <a-modal class="inner-modal" :visible="true" :width="1024" title="商品管理"  :footer="false" @cancel="handleCancel">
        <Goods :isInModal="true"></Goods>
        <div style="display:flex;justify-content:flex-end;border-top:1px solid #ddd;padding-top:8px">
        <a-button  @click="handleCancel">关闭</a-button>
    </div>
    </a-modal>
</template>
<script lang="ts" setup>
import Goods from "@/pages/goods/index.vue"
const emit = defineEmits<{
    (e:"cancel"):void
}>()

const handleCancel = ()=>{
    emit("cancel")
}
</script>